﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TopMenu.ascx.cs" Inherits="iEN.UserControl.TopMenu" %>
<%@ Register TagPrefix="componentart" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>

<link href="../css/baseStyle.css" type="text/css" rel="stylesheet"/>
<link href="../css/menuStyle.css" type="text/css" rel="stylesheet"/>

    <script language ="javascript" type ="text/javascript" >
    function pageLoad()
    {   
        Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(cancelPostBack);
    }

    function cancelPostBack(sender, args) {
        if (Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack())
         {
            //alert('請勿重複按送出鈕');
            args.set_cancel(true);
        }
    }
    </script>

<style type="text/css">BODY { FONT-SIZE: 12pt; FONT-FAMILY: Arial, Verdana }
	TABLE { FONT-SIZE: 8pt; FONT-FAMILY: Arial, Verdana }
	TR { FONT-SIZE: 8pt; FONT-FAMILY: Arial, Verdana }
	P { FONT-SIZE: 7pt; FONT-FAMILY: Arial, Verdana }
	.CountDownExpiring { COLOR: yellow }
	.CountingDown { COLOR: white }
</style>

<center>
<table width="1000px" border="0px" cellpadding="0px" cellspacing="0px">
    <tr>
        <td style="height:65px; padding-top:-10px">
        <img alt="iEN Logo" src="../images/Banner.jpg" width ="1000px" height ="65px"/>
        </td>
    </tr>
</table>
<table width="1000px" bgcolor="#000000" border="0">    
	<TR>	    	    
		<TD valign="top" align="left" style="width: 500px"> 
            	  
            <asp:Menu ID="Menu1" runat="server" BackColor="Black" orientation="Horizontal" DynamicHorizontalOffset="0"
                Font-Names="Verdana" ForeColor="White" StaticSubMenuIndent="10px" 
                Font-Overline="False" Font-Underline="False">
                <Items>
                    <asp:MenuItem Text="即時監測" Value="即時監測" Selectable="False">
                        <asp:MenuItem NavigateUrl="../Immediate/ShowNow.aspx" Text="即時狀態顯示" Value="即時狀態顯示"></asp:MenuItem>                    
                    </asp:MenuItem>
                    <asp:MenuItem Text="設備管理" Value="設備管理" Selectable="False">
                        <asp:MenuItem NavigateUrl="../Organization/GroupManage.aspx" Text="組織群組管理" Value="組織群組管理"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="../Organization/ControllerManage.aspx" Text="控制器管理" Value="控制器管理"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="../Organization/DeviceManage.aspx" Text="設備管理" Value="設備管理"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="../Organization/TagManage.aspx" Text="監控點管理" Value="監控點管理"></asp:MenuItem>
                    </asp:MenuItem>
                    <asp:MenuItem Text="告警資料" Value="告警資料" Selectable="False">
                        <asp:MenuItem NavigateUrl="../Alarm/SetAlarmGrp.aspx" Text="告警群組" Value="告警群組"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="../Alarm/SetAlarm.aspx" Text="告警設定" Value="告警設定"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="../Alarm/QueryHisAlarm.aspx" Text="歷史告警查詢" Value="歷史告警查詢"></asp:MenuItem>
                    </asp:MenuItem>
                    <asp:MenuItem Text="統計報表" Value="統計報表" Selectable="False">
                        <asp:MenuItem NavigateUrl="../Report/BillModeConfig.aspx" Text="電價設定" Value="電價設定"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="../Report/DailyReport.aspx" Text="用電日報表" Value="用電日報表"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="../Report/MonthlyReport.aspx" Text="用電月報表" Value="用電月報表"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="../Report/YearlyReport.aspx" Text="用電年報表" Value="用電年報表"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="../Report/BillReport.aspx" Text="電費報表" Value="電費報表"></asp:MenuItem>
                    </asp:MenuItem>
                    <asp:MenuItem Text="系統管理" Value="系統管理" Selectable="False">
                        <asp:MenuItem NavigateUrl="../PlatformSet/CreateUser.aspx" Text="新增帳號" Value="新增帳號"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="../PlatformSet/SetUser.aspx" Text="帳號管理" Value="帳號管理"></asp:MenuItem>
                        <asp:MenuItem NavigateUrl="../PlatformSet/EventLog.aspx" Text="事件記錄" Value="事件記錄"></asp:MenuItem>
                    </asp:MenuItem>
                </Items>
                
                <StaticSelectedStyle BackColor="Black" />
                <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                <DynamicMenuStyle BackColor="#CCCCCC" />
                <DynamicSelectedStyle BackColor="Blue" />
                <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" 
                    BackColor="#CCCCCC" Font-Bold="False" ForeColor="#333333" />
                <DynamicHoverStyle BackColor="LightGray" Font-Bold="False" ForeColor="White" />
                <StaticHoverStyle BackColor="Gray" Font-Bold="False" ForeColor="White" />
            </asp:Menu>
            	  
        </TD>

        <TD valign="bottom" align="right">
            
            <iframe height="16" width ="240" src ="../CheckAlive.aspx" scrolling ="no" marginheight="0" marginwidth="0" frameborder="0"></iframe>
            <asp:Button ID="btnLogout" runat="server" onclick="btnLogout_Click" Text="登出" 
                onclientclick="return confirm('確定要登出嗎？');" TabIndex="100" />
        </TD>	        
    </TR>
</TABLE>
</center>
